﻿using System;

namespace diantou.web.enterprise
{
    /// <summary>
    /// 考试集合
    /// </summary>
    [fastCSharp.code.cSharp.webView(IsPage = false, IsPool = true)]
    partial class examList : examPermissionView<examList>
    {
        /// <summary>
        /// 考试列表
        /// </summary>
        [fastCSharp.emit.webView.clearMember]
        private diantou.examDataAccess.exam[] exams;
        /// <summary>
        /// 初始化考试列表
        /// </summary>
        /// <param name="page">分页号</param>
        /// <returns>是否成功</returns>
        private bool loadView(diantou.examDataAccess.exam.getType type, int page, diantou.examDataAccess.exam.sort sort, bool isAsc)
        {
            exams = diantou.examDataAccess.clientCache.Exam.Get(diantou.examDataAccess.tcpCall.exam.getIds(currentUserId, type, sort, isAsc, pageInfo.Size = fastCSharp.config.pub.Default.PageSize, pageInfo.Page = page, out pageInfo.Count));
            return true;
        }
    }
}
